<%page args="section_data" expression_filter="h"/>
<%namespace name='static' file='/static_content.html'/>
<%!
from django.utils.translation import gettext as _
from openedx.core.djangolib.markup import HTML, Text
%>

<section id="certificate" class="idash-section tab-data" aria-labelledby="header-cert">
        <h6 class="mb-15 font-size-100" id="header-cert">
            <strong>${_("Note")}: </strong>
            Please certificate report type option and then click Download Report button.
        </h6>

        <select class="report-type selector">
            <option value="viewCertificates" data-csv="false"
                    data-datatable="true"
                    data-endpoint="${ section_data['get_issued_certificates_url'] }">View certificates
            </option>
            <option value="downloadCertificates"
                    data-csv="true"
                    data-directdownload="true"
                    data-endpoint="${ section_data['get_issued_certificates_url'] }">Download csv of
                certificates
            </option>
        </select>

            <input type="button"
                   value="Download Report"
                   class="mb-20 download-report">
        <div>
            <p>${_("Click to list certificates that are issued for this course:")}</p>
        </div>
</section>
